var express = require('express'); 
var app = express(); 
var path = require('path');
 var proxy = require('http-proxy-middleware'); 
 var options = { 
     target: 'http://localhost:9000', 
 // the app
  changeOrigin: true }; 
  var exampleProxy = proxy(options); 
  app.use('/app', exampleProxy); 
  app.use(express.static(__dirname + '/')) 
  app.listen(8080); 